import request from '@/utils/request'
export function listCom(query) {
  return request({
    url: '/mapp/park/list',
    method: 'get',
    params: query
  })
}
export function getCom(id) {
  return request({
    url: '/mapp/park/' + id,
    method: 'get'
  })
}
export function addCom(data) {
  return request({
    url: '/mapp/park',
    method: 'post',
    data: data
  })
}
export function updateCom(data) {
  return request({
    url: '/mapp/park',
    method: 'put',
    data: data
  })
}
export function delCom(id) {
  return request({
    url: '/mapp/park/' + id,
    method: 'delete'
  })
}
